import { useStripePayment } from './payment'
import { useStripeSetup } from './setup'

export function useStripe({ intent = 'payment' }) {
  switch (intent) {
    case 'payment':
      return useStripePayment()
    case 'setup':
      return useStripeSetup()
    default:
      throw new Error('Unknown intent type, please use payment or setup.')
  }
}
